package com.migo.service;

import com.migo.entity.UserEntity;

import java.util.List;
import java.util.Map;

/**
 * 用户
 * 
 * @author powervision
 * @email wes.wang@powervision.me
 * @date 2018-10-29 14:29:47
 */
public interface UserService {
	
	UserEntity queryObject(Integer id);
	
	List<UserEntity> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(UserEntity user);
	
	void update(UserEntity user);
	
	void delete(Integer id);
	
	void deleteBatch(Integer[] ids);

	UserEntity phoneLogin(Map<String, String> map);

	UserEntity emailLogin(Map<String, String> map);

	void modiyPassword(String userId,String newPassword);

	UserEntity queryUser(String userId);

	UserEntity queryUserExist(Map<String, String> map);

	void register(Map<String, String> map);
}
